@extends(admin.layout)
@section("title"){编辑个人资料-安浪人工智能管理系统后台管理中心}
@section("css"){
<!--附加css-->
}
@args{

}
<div class="margin-container">
    <div class="scrollable wrapper">
        <div class="row">
            <div class="col-md-12">
                <div class="page-heading">
                    <h1>编辑个人信息</h1>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="profile-nav col-lg-3">
                <div class="panel">
                    <div class="user-heading round">
                        <a href="#">
                            <img src="@(user.getAvatar())" alt=""> </a>
                        <h1>@(user.getUsername())</h1>
                        <p>@(user.getEmail())</p>
                    </div>

                    <ul class="nav nav-pills nav-stacked">
                        <li><a href="profile"> <i class="icon-user"></i> 浏览</a></li>
                        <li class="active"><a href="#"> <i class="icon-edit"></i> 编辑</a></li>
                        <li><a href="#"> <i class="icon-calendar"></i> Recent Activity <span class="label label-danger pull-right r-activity">7</span></a></li>

                    </ul>

                </div>
            </div>
            <div class="profile-info col-lg-9">
                <div>
                    <div class="box-info">
                        <h2> 修改头像</h2>
                        <div class="panel-body">
                            <form role="form" action="change-avatar-@(user._id())" method="post" enctype="multipart/form-data" class="form-horizontal">
                                <div class="form-group">
                                    <label class="col-lg-2 control-label">修改头像</label>
                                    <div class="col-lg-6">
                                        <input type="file" name="avatar" id="exampleInputFile" class="file-pos">
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class="col-lg-offset-2 col-lg-10">
                                        <button class="btn btn-primary" type="submit">保存</button>
                                        <button class="btn btn-default" type="reset">重置</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
                <div class="panel">
                    <div class="panel-body bio-graph-info">
                        <h1> 基本信息</h1>
                        <form role="form" action="change-info-@(user._id())" method="post" class="form-horizontal">

                            <div class="form-group">
                                <label class="col-lg-2 control-label">个人简介</label>
                                <div class="col-lg-10">
                                    <textarea rows="10" cols="30" class="form-control" id="" name="aboutme">
                                        @(user.getAboutme())
                                    </textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-2 control-label">昵称</label>
                                <div class="col-lg-6">
                                    <input type="text" placeholder=" " name="nickname"  value="@(user.getNickname())" id="f-name" class="form-control">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-2 control-label">名字</label>
                                <div class="col-lg-6">
                                    <input type="text" placeholder=" " name="firstname"  value="@(user.getFirstname())" id="f-name" class="form-control">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-2 control-label">姓氏</label>
                                <div class="col-lg-6">
                                    <input type="text" placeholder=" " name="lastname" value="@(user.getLastname())" id="l-name" class="form-control">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-2 control-label">国家</label>
                                <div class="col-lg-6">
                                    <input type="text" placeholder=" " name="country" value="@(user.getCountry())" id="c-name" class="form-control">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-2 control-label">生日</label>
                                <div class="col-lg-6">
                                    <input type="text" placeholder=" " name="birthday" value="@(user.getBirthday())" id="b-day" class="form-control">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-2 control-label">职业</label>
                                <div class="col-lg-6">
                                    <input type="text" placeholder=" " name="occupation" value="@(user.getOccupation())" id="occupation" class="form-control">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-2 control-label">Email</label>
                                <div class="col-lg-6">
                                    <input type="text" placeholder=" " name="email" value="@(user.getEmail())" id="email" class="form-control">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-2 control-label">手机号</label>
                                <div class="col-lg-6">
                                    <input type="text" placeholder=" " name="mobile" value="@(user.getMobile())" id="mobile" class="form-control">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-2 control-label">网址</label>
                                <div class="col-lg-6">
                                    <input type="text" placeholder="http://www. " name="website" value="@(user.getWebsite())" id="url" class="form-control">
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-lg-offset-2 col-lg-10">
                                    <button class="btn btn-danger" type="submit">保存</button>
                                    <button class="btn btn-default" type="reset">重置</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <div>
                    <div class="box-info">
                        <h2> 修改密码</h2>
                        <div class="panel-body">
                            <form role="form" action="change-password-@(user._id())" method="post" class="form-horizontal">
                                <div class="form-group">
                                    <label class="col-lg-2 control-label">当前密码</label>
                                    <div class="col-lg-6">
                                        <input type="password" name="password" placeholder=" " id="c-pwd" class="form-control">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-lg-2 control-label">新密码</label>
                                    <div class="col-lg-6">
                                        <input type="password" name="newpassword" placeholder=" " id="n-pwd" class="form-control">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-lg-2 control-label">确认新密码</label>
                                    <div class="col-lg-6">
                                        <input type="password" name="newpassword1" placeholder=" " id="rt-pwd" class="form-control">
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class="col-lg-offset-2 col-lg-10">
                                        <button class="btn btn-primary" type="submit">保存</button>
                                        <button class="btn btn-default" type="reset">重置</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>
@section("js"){
<!--附加js-->
}